#include <iostream>
#include<cctype>
using namespace std;
string getdet(string& str)
{
   int index = 0;int left = 0;int len = str.size();
   while(left<len)
   {
        if(islower(str[left]))
        {
            char tmp = str[left];
            for(int k = left;k>index;k--)
            {
                str[k] = str[k-1];
            }
            str[index++] = tmp;
        }
        left++;
   }
   return str;
}
int main() 
{
    string str;
    while(getline(cin,str))
    {
        cout<<getdet(str)<<endl;
    }    
    return 0;
}